package com.hanson.demo.actors.biz_actor;

import com.hanson.demo.actors.ActorCtx;
import com.hanson.demo.actors.ActorSystemServiceContext;
import com.hanson.demo.actors.ContextAwareActor;
import com.hanson.demo.actors.Message;

/**
 * @author hanson
 *
 */
public class MyPersonActor extends ContextAwareActor {

	public MyPersonActor(ActorSystemServiceContext systemContext) {
		super(systemContext);
	}

	@Override
	public void initMail(ActorCtx ctx) {
		try {
			super.initMail(ctx);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	@Override
	protected boolean doProcess(Object message) {
		if (message instanceof Message) {
			System.out.println("MyPersonActor message: " + message);
		}
		return false;
	}

}
